import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import "matrix_js.js" as MAT
import liuyang.Media 1.0

ApplicationWindow {
    title: qsTr("Hello World")
    width: 800
    height: 820
    visible: true

    menuBar: MenuBar {
        Menu {
            title: qsTr("&File")
            MenuItem {
                text: qsTr("&Open")
                onTriggered: messageDialog.show(qsTr("Open action triggered"));
            }
            MenuItem{
                text: qsTr("建立矩阵");
                onTriggered: {
                    MAT.createMatrixSettings();
                }
            }
            MenuItem {
                text: qsTr("E&xit")
                onTriggered: Qt.quit();
            }
        }
    }

    MediaClass{
        id:media
    }

    MainForm{
        id:mainForminMain
        anchors.centerIn:parent
    }
}
